package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;

public interface AdChannelControllerApi {
    /**
     * 根据查询条件分页查询频道列表
     * @param dto
     * @return
     */
    public ResponseResult findPageListMsg(ChannelDto dto);

    /**
     * 新增
     * @param adChannel
     * @return
     */
    public ResponseResult insert(AdChannel adChannel);

    /**
     * 修改
     * @param adChannel
     * @return
     */
    public ResponseResult updata(AdChannel adChannel);

    /**
     * 删除
     * @param id
     * @return
     */
    public ResponseResult delete(Integer id);
    public ResponseResult moveDown(Integer id);
    public ResponseResult moveUp(Integer id);
    //内容列表查询判断
    public ResponseResult findAll();
}
